package se.sweco.dataservice;

public class TrafficData {
	private Coord start;
	private Coord end;
	private double time;
	private int reliability;
	
	public TrafficData(Coord start, Coord end, double time, int reliability) {
		setStart(start);
		setEnd(end);
		setTime(time);
		setReliability(reliability);
	}
	
	public Coord getStart() {
		return start;
	}
	public void setStart(Coord start) {
		this.start = start;
	}
	public Coord getEnd() {
		return end;
	}
	public void setEnd(Coord end) {
		this.end = end;
	}
	public double getTime() {
		return time;
	}
	public void setTime(double time) {
		this.time = time;
	}
	public int getReliability() {
		return reliability;
	}
	public void setReliability(int reliability) {
		this.reliability = reliability;
	}
	public String toString() {
		return start + "->" + end + " " + time + "(" + reliability + "%)";
	}
}
